SRDropExecutionAck
METADATA
Attribute | Value |
---|---|
Topic | 1450-away-drop |
MLink Token | ClientTrading |
Product | SRTrade |
accessType | SELECT |
Table Definition
Field | Type | Key | Default Value | Comment |
---|---|---|---|---|
dropNumber | BIGINT | PRI | 0 | SR drop record number |
routingCode | TINYTEXT | '' | ||
secKey_at | enum - AssetType | 'None' | ||
secKey_ts | enum - TickerSrc | 'None' | ||
secKey_tk | VARCHAR(12) | '' | ||
secKey_yr | SMALLINT UNSIGNED | 0 | ||
secKey_mn | TINYINT UNSIGNED | 0 | ||
secKey_dy | TINYINT UNSIGNED | 0 | ||
secKey_xx | DOUBLE | 0 | ||
secKey_cp | enum - CallPut | 'Call' | ||
secType | enum - SpdrKeyType | 'None' | ||
clientFirm | VARCHAR(16) | '' | ||
fillVersion | TINYINT UNSIGNED | 0 | ||
dropExecStatus | enum - DropExecStatus | 'None' | ||
otherDetail | TINYTEXT | '' | ||
errorDetail | TINYTEXT | '' | ||
fillNumber | BIGINT | 0 | SR Fill Number if Accepted | |
fillDttm | DATETIME(6) | '1900-01-01 00:00:00.000000' | ||
timestamp | DATETIME(6) | '1900-01-01 00:00:00.000000' |
PRIMARY KEY DEFINITION (Unique)
Field | Sequence |
---|---|
dropNumber | 1 |
CREATE TABLE EXAMPLE QUERY
CREATE TABLE `SRTrade`.`MsgSRDropExecutionAck` (
`dropNumber` BIGINT NOT NULL DEFAULT 0 COMMENT 'SR drop record number',
`routingCode` TINYTEXT NOT NULL DEFAULT '',
`secKey_at` ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') NOT NULL DEFAULT 'None',
`secKey_ts` ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') NOT NULL DEFAULT 'None',
`secKey_tk` VARCHAR(12) NOT NULL DEFAULT '',
`secKey_yr` SMALLINT UNSIGNED NOT NULL DEFAULT 0,
`secKey_mn` TINYINT UNSIGNED NOT NULL DEFAULT 0,
`secKey_dy` TINYINT UNSIGNED NOT NULL DEFAULT 0,
`secKey_xx` DOUBLE NOT NULL DEFAULT 0,
`secKey_cp` ENUM('Call','Put','Pair') NOT NULL DEFAULT 'Call',
`secType` ENUM('None','Stock','Future','Option','MLeg') NOT NULL DEFAULT 'None',
`clientFirm` VARCHAR(16) NOT NULL DEFAULT '',
`fillVersion` TINYINT UNSIGNED NOT NULL DEFAULT 0,
`dropExecStatus` ENUM('None','Skipped','Accepted','Error') NOT NULL DEFAULT 'None',
`otherDetail` TINYTEXT NOT NULL DEFAULT '',
`errorDetail` TINYTEXT NOT NULL DEFAULT '',
`fillNumber` BIGINT NOT NULL DEFAULT 0 COMMENT 'SR Fill Number (if Accepted)',
`fillDttm` DATETIME(6) NOT NULL DEFAULT '1900-01-01 00:00:00.000000',
`timestamp` DATETIME(6) NOT NULL DEFAULT '1900-01-01 00:00:00.000000',
PRIMARY KEY USING HASH (`dropNumber`)
) ENGINE=SRSE DEFAULT CHARSET=LATIN1 COMMENT='';
SELECT TABLE EXAMPLE QUERY
SELECT
`dropNumber`,
`routingCode`,
`secKey_at`,
`secKey_ts`,
`secKey_tk`,
`secKey_yr`,
`secKey_mn`,
`secKey_dy`,
`secKey_xx`,
`secKey_cp`,
`secType`,
`clientFirm`,
`fillVersion`,
`dropExecStatus`,
`otherDetail`,
`errorDetail`,
`fillNumber`,
`fillDttm`,
`timestamp`
FROM `SRTrade`.`MsgSRDropExecutionAck`
WHERE
/* Replace with a BIGINT */
`dropNumber` = 1234567890;
Doc Columns Query
SELECT * FROM SRTrade.doccolumns WHERE TABLE_NAME='SRDropExecutionAck' ORDER BY ordinal_position ASC;